package com.easy.restful.crs.model;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import java.io.Serializable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import cn.afterturn.easypoi.excel.annotation.Excel;

/**
 * 汽车
 *
 * @author Ljv
 * @date 2021-05-14
 */
@TableName("crs_car")
public class CrsCar extends Model<CrsCar> {

    @TableId(value = "id")
    private Integer id;
    @NotBlank(message = "汽车名称不能为空")    
@Excel(name = "汽车名称", orderNum = "0")    
private String carname;
    /**
     * 类型
     */
    @NotNull(message = "类型不能为空")    
@Excel(name = "类型", orderNum = "1")    
private Integer type;
    @Excel(name = "地区", orderNum = "2")    
private Integer brandId;
    @Excel(name = "配置", orderNum = "3")    
private Integer configId;
    /**
     * 简介
     */
    @Excel(name = "简介", orderNum = "4")    
private String intro;
    /**
     * 车辆识别码
     */
    @Excel(name = "车辆识别码", orderNum = "5")    
private String vin;
    @Excel(name = "价格", orderNum = "6")    
private Double buyPrice;
    /**
     * 门店编号
     */
    @Excel(name = "门店编号", orderNum = "7")    
private Integer shopId;
    /**
     * 车辆状态(可租1，维修中2，租出3，删除4)
     */
    @Excel(name = "车辆状态(可租1，维修中2，租出3，删除4)", orderNum = "8")    
private Integer state;
    /**
     * 价钱
     */
    @Excel(name = "价钱", orderNum = "9")    
private Double price;
    @Excel(name = "添加时间", orderNum = "10")    
private Date addtime;
    /**
     * 保险ID
     */
    @Excel(name = "保险ID", orderNum = "11")    
private Integer insuranceId;
    //

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getCarname() {
        return carname;
    }

    public void setCarname(String carname) {
        this.carname = carname;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }
    public Integer getConfigId() {
        return configId;
    }

    public void setConfigId(Integer configId) {
        this.configId = configId;
    }
    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }
    public String getVin() {
        return vin;
    }

    public void setVin(String vin) {
        this.vin = vin;
    }
    public Double getBuyPrice() {
        return buyPrice;
    }

    public void setBuyPrice(Double buyPrice) {
        this.buyPrice = buyPrice;
    }
    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }
    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }
    public Integer getInsuranceId() {
        return insuranceId;
    }

    public void setInsuranceId(Integer insuranceId) {
        this.insuranceId = insuranceId;
    }
}
